<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <title>猫狗日记</title>
  <meta name="renderer" content="webkit" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <link href="./static/css/layui.css" rel="stylesheet" />
  <link rel="shortcut icon" href="./static/images/favicon.png">

  <style>
    .site-intro {
      margin-top: 20px;
      text-align: center;
    }

    .site-intro p {
      margin-bottom: 10px;
      color: #666;
    }

    .feature-box {
      margin-top: 20px;
      text-align: center;
    }

    .feature-box i {
      font-size: 48px;
      color: #ffb800;
    }

    .feature-box h3 {
      margin: 10px 0;
    }

    .feature-box p {
      color: #666;
    }

    .latest-news {
      margin-top: 20px;
    }

    .latest-news h3 {
      border-bottom: 2px solid #ebebeb;
      padding-bottom: 10px;
    }

    .news-item {
      margin-top: 20px;
      padding: 10px;
      border: 1px solid #ebebeb;
    }

    .news-item img {
      width: 100%;
      height: 150px;
      object-fit: cover;
    }

    .news-item h4 {
      margin: 10px 0;
    }

    .news-item p {
      color: #666;
    }

    .recommended-pets {
      margin-top: 20px;
    }

    .recommended-pets h3 {
      border-bottom: 2px solid #ebebeb;
      padding-bottom: 10px;
    }

    .pet-item {
      margin-top: 20px;
      text-align: center;
    }

    .pet-item img {
      width: 100px;
      height: 100px;
      object-fit: cover;
      border-radius: 50%;
    }

    .pet-item h4 {
      margin: 10px 0;
    }

    .pet-item p {
      color: #666;
    }
  </style>
</head>

<body>
  <div class="layui-layout layui-layout-admin">
    <div class="layui-header">
      <div class="layui-logo layui-hide-xs layui-bg-black">logo 区域</div>
      <!-- 头部区域（可配合layui 已有的水平导航） -->
      <ul class="layui-nav layui-layout-left">
        <!-- 移动端显示 -->
        <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
          <i class="layui-icon layui-icon-spread-left"></i>
        </li>
        <li class="layui-nav-item layui-hide-xs layui-this">
          <a href="javascript:;">首页</a>
        </li>
        <li class="layui-nav-item layui-hide-xs">
          <a href="./about-pet.html">关于宠物</a>
        </li>
        <li class="layui-nav-item layui-hide-xs">
          <a href="./pet-cats-dogs.html">宠物猫狗</a>
        </li>
        <li class="layui-nav-item layui-hide-xs">
          <a href="./pet-news.html">宠物新闻</a>
        </li>
        <li class="layui-nav-item layui-hide-xs">
          <a href="./buy-pet/index.html">宠物购买</a>
        </li>
        <li class="layui-nav-item layui-hide-xs">
          <a href="./pet-snacks.html">宠物零食</a>
        </li>
      </ul>
      <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item layui-hide layui-show-sm-inline-block">
          <a href="javascript:;">
            <img src="./static/images/user/avatar.jpeg" class="layui-nav-img" />
            纳美
          </a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;">个人信息</a></dd>
            <dd><a href="javascript:;">退出</a></dd>
          </dl>
        </li>
      </ul>
    </div>

    <div class="layui-body" style="left: 0">
      <!-- 轮播 -->
      <div class="layui-carousel" id="pet-carousel">
        <div carousel-item>
          <div style="text-align: center">
            <img src="./static/images/index/banner1.jpeg" />
          </div>
          <div style="text-align: center">
            <img src="./static/images/index/banner2.jpg" />
          </div>
          <div style="text-align: center">
            <img src="./static/images/index/banner3.jpg" />
          </div>
          <div style="text-align: center">
            <img src="./static/images/index/banner4.jpg" />
          </div>
          <div style="text-align: center">
            <img src="./static/images/index/banner5.jpg" />
          </div>
        </div>
      </div>

      <div class="layui-container site-intro">
        <h1>欢迎来到猫狗日记</h1>
        <p>
          这里是您的宠物信息中心，提供最新宠物资讯、宠物知识、宠物用品购买等服务。
        </p>
      </div>

      <!-- 特色介绍 -->
      <div class="layui-container feature-box">
        <div class="layui-row layui-col-space20">
          <div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
            <i class="layui-icon layui-icon-read"></i>
            <h3>宠物知识</h3>
            <p>了解宠物的习性、饲养方法、健康护理等知识。</p>
          </div>
          <div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
            <i class="layui-icon layui-icon-cart"></i>
            <h3>宠物用品</h3>
            <p>提供各类宠物用品，满足您宠物的日常需求。</p>
          </div>
          <div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
            <i class="layui-icon layui-icon-chat"></i>
            <h3>宠物社区</h3>
            <p>加入宠物爱好者社区，分享您的宠物故事和经验。</p>
          </div>

          <div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
            <a href="./contact-us.html">
              <i class="layui-icon layui-icon-service"></i>
              <h3>客户服务</h3>
              <p>我们的专业团队随时为您提供帮助和咨询。</p>
            </a>
          </div>
        </div>
      </div>

      <!-- 最新资讯 -->
      <div class="layui-container latest-news">
        <h3>最新资讯</h3>
        <div class="layui-row layui-col-space20">
          <div class="layui-col-xs12 layui-col-sm6 layui-col-md4">
            <div class="news-item">
              <img src="./static/images/index/最新资讯1.webp" alt="新闻图片1" />
              <h4>纯种柴犬是什么颜色</h4>
              <p>纯种柴犬的毛色主要分为三种：赤色、黑色和白色。其中，赤色柴犬最为常见，其毛色呈现出深棕色到橙棕色不等，密集的毛发使得赤色柴犬在翻滚时画风十分唯美。</p>
            </div>
          </div>
          <div class="layui-col-xs12 layui-col-sm6 layui-col-md4">
            <div class="news-item">
              <img src="./static/images/index/最新资讯2.webp" alt="新闻图片2" />
              <h4>秋田犬和柴犬是一个品种吗</h4>
              <p>秋田犬和柴犬都是日本的两种犬类，它们外貌相似，但是有些人会误认为它们是同一个品种。那么，秋田犬和柴犬是不是同一品种呢？下面我们通过分析它们的特点来探讨一下。</p>
            </div>
          </div>
          <div class="layui-col-xs12 layui-col-sm6 layui-col-md4">
            <div class="news-item">
              <img src="./static/images/index/最新资讯3.webp" alt="新闻图片3" />
              <h4>柴犬2个月怎么喂养</h4>
              <p>2个月大的柴犬刚刚开始断奶，需要逐步转换成狗粮。建议选择高质量的狗粮，即保证主食中含有优质的蛋白质、维生素和矿物质。同时，注意防止过多添加色素和催...</p>
            </div>
          </div>
        </div>
      </div>

      <!-- 宠物品种推荐 -->
      <div class="layui-container recommended-pets" style="margin-bottom: 60px">
        <h3>宠物品种推荐</h3>
        <div class="layui-row layui-col-space20">
          <div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
            <div class="pet-item">
              <img src="./static/images/but-pet/布偶猫.webp" alt="宠物品种1" />
              <h4>布偶猫</h4>
              <p>布偶猫性格温顺,不爱吵闹,能够安安静静陪伴主人。</p>
            </div>
          </div>
          <div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
            <div class="pet-item">
              <img src="./static/images/but-pet/柴犬.webp" alt="宠物品种2" />
              <h4>柴犬</h4>
              <p>智商高、学习能力强。微笑治愈系</p>
            </div>
          </div>
          <div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
            <div class="pet-item">
              <img src="./static/images/but-pet/查理王.webp" alt="宠物品种3" />
              <h4>查理王</h4>
              <p>高贵的外表和蠢萌的内心</p>
            </div>
          </div>
          <div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
            <div class="pet-item">
              <img src="./static/images/but-pet/英短蓝猫.webp" alt="宠物品种4" />
              <h4>英短蓝猫</h4>
              <p>与人亲近，总是喜欢待在主人身边。</p>
            </div>
          </div>
        </div>
      </div>

      <div style="text-align: center; padding: 20px;" class="layui-font-gray">
        cat and dog dairy &copy; 2024 created by Wzy
      </div>
    </div>

  </div>

  <script src="./static/layui.js"></script>
  <script>
    //轮播图
    layui.use(function () {
      var carousel = layui.carousel;
      // 渲染 - 图片轮播
      carousel.render({
        elem: "#pet-carousel",
        width: "100%",
        height: "360px",
        interval: 3000,
      });
    });

    //侧边固定栏
    layui.use(function () {
      var util = layui.util;
      // 自定义固定条
      util.fixbar({
        bars: [
          {
            // 定义可显示的 bar 列表信息 -- v2.8.0 新增
            type: "share",
            icon: "layui-icon-share",
            style: "background-color: #16b777;",
            content: "分享",
          },
          {
            type: "help",
            icon: "layui-icon-help",
            content: "帮助",
          },
          {
            type: "cart",
            icon: "layui-icon-cart",
            style: "background-color: #FF5722;",
            content: "购物车",
          },
        ],
        on: {
          mouseenter: function (type) {
            const typesMap = {
              share: "分享给朋友",
              help: "帮助",
              cart: "购物车",
            }
            layer.tips(typesMap[type], this, {
              tips: 4,
              fixed: true,
            });
          },
          mouseleave: function (type) {
            layer.closeAll("tips");
          },
        },
        // 点击事件
        click: function (type) {
          console.log(this, type);
          // layer.msg(type);
        },
      });
    });
  </script>
</body>

</html>